import request from './index'

// 获取
export function getDormitory() {
  return request.get('/dormitorys')
}
// 添加
export function addDormitory(data) {
  return request.post('/addDormitory', data)
}
// 更新
export function updateDormitory(data) {
  return request.post('/updateDormitory', data)
}
// 删除
export function deleteDormitory(data) {
  return request.delete('/deleteDormitory', {
    params: data
  })
}
